<?php echo View::make('home.common.header'); ?>

<div class="hd-wrap">
    <div class="video-hd-tit fl">
        <h1><?php echo $para['title'] ?></h1>
<!--        <p>学校：桃李天下WEB开发培训学校<span>主讲：Xray</span></p>-->
    </div>
</div>
</div>

<div class="video-con-wrap">
    <div class="box">
        <div id="mediaspace_wrapper">
            <b>您需要安装最新版的Adobe Flash Player才能浏览本页内容!</b> 
        </div>
        <div class="video-buttons">
            <input class="btn btn-info btn-large" id="playbtn" type="button" value="开始">
            <input class="btn btn-info btn-large" id="prevbtn" type="button" value="上一个">
            <input class="btn btn-info btn-large" id="nextbtn" type="button" value="下一个">
            <input class="btn btn-info btn-large" id="stopbtn" type="button" value="停止">
        </div>
    </div>
</div>

<script type="text/javascript">
    var url = "<?php echo $para['videoURL'] ?>";
    var file = "<?php echo $para['uuid'] ?>";
    var myPlayerWithPlaylist = umsplayer("mediaspace_wrapper").setup({
        flashplayer: "/ums/player/umsplayer.swf",
        width: 960,
        height: 430,
        backcolor: "#000000",
        stretching: "uniform",
        streamer: url,
        file: file,
        image: "images/6rooms.jpg",
        autoStart: false,
        repeat: "always",
        volume: 100,
        controlbar: "over",
        viral: {onpause: true, allowmenu: true},
        skin: "/ums/skins/glow.zip"
    });
    myPlayerWithPlaylist.play();
    var elem = $("#playbtn")[0];

    myPlayerWithPlaylist.onPlay(function() {
        elem.value = "暂停";
    });
    myPlayerWithPlaylist.onPause(function() {
        elem.value = "开始";
    });
    myPlayerWithPlaylist.onIdle(function() {
        elem.value = "开始";
    });

    $("body").on("click", "#playbtn", function() {
        myPlayerWithPlaylist.play();
    });
    $("body").on("click", "#prevbtn", function() {
        myPlayerWithPlaylist.playlistPrev();
    });
    $("body").on("click", "#nextbtn", function() {
        myPlayerWithPlaylist.playlistNext();
    });
    $("body").on("click", "#stopbtn", function() {
        myPlayerWithPlaylist.stop();
    });
</script> 

<div class="youketang-content">

    <?php echo View::make("home.common.footer"); ?>
